package com.gugee.ins.data.blogger.es.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class BloggerToElasticsearchAppConfig {

    @NacosValue(value = "${ins.es.blogger.main.index:ins_blogger}", autoRefreshed = true)
    String bloggerIndex;

    @NacosValue(value = "${ins.es.media.index:ins_media}", autoRefreshed = true)
    String mediaIndex;

    /**
     * 数据查询时间范围
     */
    @NacosValue(value = "${ins.data.collector.query.latestDays:30}", autoRefreshed = true)
    int latestDays;

    /**
     * 统计播主时限,单位分钟
     */
    @NacosValue(value="${com.gugee.ins.data.blogger.elasticsearch.maxLimitTime:60}", autoRefreshed = true)
    long acceptMsgClMaxLimitTime;

    @NacosValue(value = "${com.gugee.ins.data.blogger.elasticsearch.bloggerMainToEs.ThreadSize:10}", autoRefreshed = true)
    int bloggerMainToEsThreadSize;

    @NacosValue(value = "${com.gugee.ins.data.blogger.elasticsearch.bloggerMainUpdateEs.ThreadSize:10}", autoRefreshed = true)
    int bloggerMainUpdateEsThreadSize;

    @NacosValue(value = "${com.gugee.ins.data.blogger.elasticsearch.bloggerActiveFollowerDataToEs.ThreadSize:10}", autoRefreshed = true)
    int bloggerActiveFollowerDataToEsThreadSize;

    @NacosValue(value = "${com.gugee.ins.data.blogger.elasticsearch.bloggerRealFollowerToEs.ThreadSize:10}", autoRefreshed = true)
    int bloggerRealFollowerToEsThreadSize;
}
